package org.dromara.nursing.domain.bo;

import org.dromara.nursing.domain.StaffInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 员工基本信息业务对象 ms_staff_info
 *
 * @author Xue
 * @date 2025-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StaffInfo.class, reverseConvertGenerate = false)
public class StaffInfoBo extends BaseEntity {

    /**
     * 员工ID
     */
    @NotNull(message = "员工ID不能为空", groups = { EditGroup.class })
    private Long staffId;

    /**
     * 员工姓名
     */
    @NotBlank(message = "员工姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String staffName;

    /**
     * 性别
     */
    private Long gender;

    /**
     * 出生日期
     */
    private Date birthDate;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idCard;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 职位
     */
    private String position;

    /**
     * 部门
     */
    private String department;

    /**
     * 入职日期
     */
    private Date entryDate;

    /**
     * 住址
     */
    private String address;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 备注
     */
    private String remarks;


}
